//
//  CodeBarViewController.h
//  CheZhu-Merchant
//
//  Created by Calvin on 14/11/26.
//  Copyright (c) 2014年 智道安盈. All rights reserved.
//

#import "BLBaseViewController.h"
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "LBXScanView.h"
#import "LBXScanWrapper.h"
#import "LBXScanVideoZoomView.h"


@class CodeBarViewController;
@protocol CodeBarViewControllerDelegate <NSObject>

@optional
-(void)didSaoMiaoFinished:(CodeBarViewController *)codeBarViewController
                 withCodeArr:(NSArray *)codeArr;

@end

@interface CodeBarViewController : BLBaseViewController
<UIImagePickerControllerDelegate,UINavigationControllerDelegate,UITextFieldDelegate,UITableViewDelegate,UITableViewDataSource>{
    
    LBXScanVideoZoomView *_zoomView;

    UITextField *_codeTextField;
    UITableView *tableView;
//所有数据
    NSMutableArray *recordArray;
    NSArray *localRecordArr;
    UIButton *tapView;
}

/**
 @brief 是否需要扫码图像
 */
@property (nonatomic, assign) BOOL isNeedScanImage;

/**
 @brief  扫码功能封装对象
 */
@property (nonatomic,strong) LBXScanWrapper* scanObj;

#pragma mark - 扫码界面效果及提示等
/**
 @brief  扫码区域视图,二维码一般都是框
 */
@property (nonatomic,strong) LBXScanView* qRScanView;




/**
 *  界面效果参数
 */
@property (nonatomic, strong) LBXScanViewStyle *style;


#pragma mark - 扫码界面效果及提示等


/**
 @brief  扫码当前图片
 */
@property(nonatomic,strong)UIImage* scanImage;


/**
 @brief  启动区域识别功能
 */
@property(nonatomic,assign)BOOL isOpenInterestRect;


- (void)reStartDevice;



@property (nonatomic, assign) id <CodeBarViewControllerDelegate> delegate;
#pragma mark -模仿qq界面
@property (nonatomic, assign) BOOL isQQSimulator;

/**
 @brief  扫码区域上方提示文字
 */
@property (nonatomic, strong) UILabel *topTitle;

#pragma mark --增加拉近/远视频界面
@property (nonatomic, assign) BOOL isVideoZoom;

@property (nonatomic, assign) NSInteger type;

@end

@interface RecordTableViewCell : UITableViewCell
@property (nonatomic,strong)UIButton *deleteBtn;
@end
